import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入规则验证
import './plugins/validate'

import "swiper/swiper-bundle.min.css"

Vue.config.productionTip = false
// 引入Pagination组件
import Pagination from './components/Pagination'
// 引入图片懒加载插件
import '@/plugins/lazyload'
// 引入elementUI
import '@/plugins/element'
import '@/plugins/aplayer'
// 引入发送请求的函数挂载到原型上
import API from '@/api'
Vue.prototype.$API = API
import dayjs from "dayjs"
Vue.prototype.dayjs = dayjs;//可以全局使用dayjs
// 注册全局组件
Vue.component('Pagination', Pagination)
new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
